//
//  StoreRoomTwoCell.m
//  JinChengYun
//
//  Created by 金橙云 on 2017/9/13.
//  Copyright © 2017年 金橙云. All rights reserved.
//
#define ONE_WID ([UIScreen mainScreen].bounds.size.width/3)
#import "StoreRoomTwoCell.h"

@implementation StoreRoomTwoCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        _louLab = [[UILabel alloc] init];
        _louLab.textAlignment = NSTextAlignmentCenter;
        _louLab.text = @"P1";
        _louLab.textColor = [UIColor blackColor];
        _louLab.textAlignment = NSTextAlignmentCenter;
        // _dayLab.backgroundColor = [UIColor redColor];
        _louLab.font = [UIFont systemFontOfSize:12];
        [self addSubview:_louLab];
        [_louLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(ONE_WID, 20));
            make.left.equalTo(self.mas_left);
            make.top.equalTo(self.mas_top).offset(10);
        }];
        
        
        
        _fangLab = [[UILabel alloc] init];
        _fangLab.textAlignment = NSTextAlignmentCenter;
        _fangLab.text = @"P090";
        _fangLab.textColor = [UIColor blackColor];
        _fangLab.textAlignment = NSTextAlignmentCenter;
        // _louLab.backgroundColor = [UIColor redColor];
        _fangLab.font = [UIFont systemFontOfSize:12];
        [self addSubview:_fangLab];
        [_fangLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(ONE_WID, 20));
            make.centerX.equalTo(self.mas_centerX);
            make.top.equalTo(self.mas_top).offset(10);
        }];
        
        
        _ceLab = [[UILabel alloc] init];
        _ceLab.textAlignment = NSTextAlignmentCenter;
        _ceLab.text = @"[7]";
        _ceLab.textColor = [UIColor orangeColor];
        //_wuLab.backgroundColor = [UIColor redColor];
        _ceLab.textAlignment = NSTextAlignmentCenter;
        _ceLab.font = [UIFont systemFontOfSize:14];
        [self addSubview:_ceLab];
        [_ceLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(ONE_WID, 20));
            //make.left.equalTo(_louLab.mas_right);
            make.top.equalTo(self.mas_top).offset(10);
            make.right.mas_equalTo(self.mas_right);
        }];
        
        for (int i = 0; i<2; i++)
        {
            UILabel *shuLine = [[UILabel alloc] init];
            shuLine.frame = CGRectMake(ONE_WID+ONE_WID*i, 0, 2, 40);
            shuLine.backgroundColor = [UIColor lightGrayColor];
            [self addSubview:shuLine];
            
        }

    }
    return self;
}


-(void)setUpCeoStoreRoomTwoCellLou:(NSString *)_lou withFangLab:(NSString *)_fang withCeLab:(NSString *)_ce
{
    _louLab.text = _lou;
    _fangLab.text = _fang;
    _ceLab.text = _ce;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
